package com.five.dao;

import com.five.entity.UserBusinessActivities;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBusinessActivitiesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserBusinessActivities record);

    int insertSelective(UserBusinessActivities record);

    UserBusinessActivities selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserBusinessActivities record);

    int updateByPrimaryKey(UserBusinessActivities record);

    int selectGroupPersonNumber(Integer businessActivitiesId);

    List<UserBusinessActivities> selectUserBusinessActivities(Integer businessActivitiesId);

    UserBusinessActivities selectByUserIdAndBusinessActivityId(@Param("userId") Integer userId,
                                                               @Param("businessActivitiesId") Integer businessActivitiesId);

    List<UserBusinessActivities> selectByUserId(Integer userId);
}